package cn.ydt.ydt.pojo.community.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;

@Data
public class AddOutDTO {
    /**
     * id
     */
    private Long outId;
    /**
     * 外出地点
     */
    @ApiModelProperty(name = "outAddress" ,value = "外出地址",required = true,dataType = "string",example = "七彩俊园")
    private String outAddress;
    /**
     * 外出原因
     */
    @ApiModelProperty(name = "outResult" ,value = "外出原因",required = true,dataType = "string",example = "七彩俊园")
    private String outResult;
    /**
     * 外出开始时间
     */
    @ApiModelProperty(name = "outStarttime" ,value = "外出开始时间",required = true,example = "")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date outStarttime;
    /**
     * 外出结束时间
     */
    @ApiModelProperty(name = "outEndtime" ,value = "外出结束时间",required = true,example = "")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date outEndtime;
    /**
     * 外出人员姓名
     */
    @ApiModelProperty(name = "outName" ,value = "外出人员姓名",required = true,dataType = "string",example = "七彩俊园")
    private String outName;
}
